package MalouZoo;

import java.util.ArrayList;
import java.util.List;

public class Zoo {
     private String zooName;
     private String zooAddress;
     private Integer zooContact;
     private Manager zooCorrespondingManager;

     private List<AnimalKeeper> animalKeepers = new ArrayList<>();
     private List<Animal> animals = new ArrayList<>();
     private List<Visitor> visitors = new ArrayList<>();



     public void addAnimalKeeper(AnimalKeeper animalKeeper) {
          animalKeepers.add(animalKeeper);
     }

     public void addAnimal(Animal animal) {
          animals.add(animal);
     }

     public void addVisitor(Visitor visitor) {
          visitors.add(visitor);
     }


     public String displayAllAnimalKeepers() {
          String displayMessage = "";
          for( AnimalKeeper animalKeeper : this.animalKeepers ){
               displayMessage += animalKeeper.getUserName();
          }
          return displayMessage;
     }

     public String displayAllAnimals() {
          String displayMessage = "";
          for( Animal animal : this.animals ){
               displayMessage += animal.getUserName();
          }
          return displayMessage;

     }

     public String displayAllVisitors() {
          String displayMessage = "";
          for(Visitor visitor : this.visitors ){
               displayMessage += visitor.getUserName();
          }
          return displayMessage;
     }
}
